﻿@model NewRen.Models.Admin
@using NewRen.Models;
@{
    ViewBag.Title = "管理员展示";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>管理员信息展示</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="#">管理员信息展示</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="detail-table">
                            <tr>
                                <td class="row-title">用户名</td>
                                <td>@Model.UserName</td>
                            </tr>
                            <tr>
                                <td class="row-title">真实姓名</td>
                                <td>@Model.RealName</td>
                            </tr>
                            <tr>
                                <td class="row-title">手机</td>
                                <td>@Model.Phone</td>
                            </tr>
                            <tr>
                                <td class="row-title">地址</td>
                                <td>@Model.Address</td>
                            </tr>
                            <tr>
                                <td class="row-title">图像</td>
                                <td>
                                    @if (Model.Picture == null)
            {
                                        <img src="/Images/userphoto.png" width="50" height="50"
                                             alt=@Model.UserName style="border-radius:50%;" />
                                    }
                                    else
                                    {
                                        <img src="/Admin/System/ShowAdminPicture/@Model.ID" width="50"
                                             alt=@Model.UserName height="50" style="border-radius:50%;" />
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td class="row-title">邮箱</td>
                                <td>@Model.Email</td>
                            </tr>
                            <tr>
                                <td class="row-title">QQ</td>
                                <td>@Model.QQ</td>
                            </tr>
                            <tr>
                                <td class="row-title">角色</td>
                                <td>@CommonEnums.AdminRoleDisply[Model.RoleAsInt]</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
